home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / library / reqtlsdv.lha / ReqTools / Glue / PCQ / pcq_glue.lha / ReqTools.i < prev    next >
Text File  |  1992-09-14  |  21KB  |  592 lines

  1. {
  2.  
  3.     ReqTools V38 include file
  4.  
  5.     Compiles under PCQ Pascal 1.2d
  6.  
  7.     Translated from Gunter Indenhoek's HSPascal interface v1.2 to work
  8.     in PCQ Pascal by Chris Pressey, Sept 12 1992
  9.  
  10.     Original comment block follows :
  11.  
  12. }
  13. {        ReqTools (V38) interface for HSPascal         }
  14. {                                                      }
  15. { ReqTools is (C) Copyright 1991/1992 by Nico François }
  16. {                                                      }
  17. {  HSPascal interface v1.2 © 1992 by Gunter Indenhoek  }
  18.  
  19. {$I "Utility.i"}
  20. {$I "Include:Intuition/Intuition.i"}
  21. {$I "include:libraries/dos.i"}
  22. {$I "Include:Exec/Memory.i"}
  23. {$I "Include:Exec/Interrupts.i"}
  24. {$I "Include:Exec/Libraries.i"}
  25. {$I "Include:Exec/Ports.i"}
  26. {$I "Include:Exec/IO.i"}
  27. {$I "Include:Exec/Devices.i"}
  28.  
  29. Const
  30.     
  31.     REQTOOLSNAME = "reqtools.library";
  32.     REQTOOLSVERSION = 38;
  33.  
  34. Type
  35.  
  36. { array to pass your arguments to EZRequestA() }
  37.  
  38.     argarray = array[0..31] of Integer;
  39.  
  40. { array to pass your flags to reqtools-requesters }
  41.  
  42.     ReqTagList = array[0..32] of TagItem;
  43.     ReqTagListPtr = ^ReqTagList;
  44.  
  45. { library - base }
  46.  
  47.     ReqToolsBase = Record
  48.                    Lib_Node : LibraryPtr;
  49.                    Flags    : Byte;
  50.                    Pad      : Array[0..3] of Byte;
  51.                    SegList  : BPTR;
  52.  
  53.                    { The following library bases may be read and used by your program }
  54.  
  55.                    IntuitionBase: LibraryPtr;
  56.                    GfxBase  : LibraryPtr;
  57.                    DOSBase  : LibraryPtr;
  58.  
  59.                    { Next two library bases are only (and always) valid on Kickstart 2.0!
  60.                      (1.3 version of reqtools also initializes these when run on 2.0) }
  61.  
  62.                    GadToolsBase : LibraryPtr;
  63.                    UtilityBase  : LibraryPtr;
  64.                    end;
  65.     ReqToolsBasePtr = ^ReqToolsBase;
  66.  
  67. Const
  68.  
  69. { types of requesters, for rtAllocRequestA() }
  70.  
  71.     RT_FILEREQ = 0;
  72.     RT_REQINFO = 1;
  73.     RT_FONTREQ = 2;
  74.     { (V38) }
  75.     RT_SCREENMODEREQ = 3;
  76.  
  77. {***********************
  78. *                      *
  79. *    File requester    *
  80. *                      *
  81. ***********************}
  82.  
  83. type
  84.  
  85. { structure _MUST_ be allocated with rtAllocRequest() }
  86.  
  87.     rtFileRequester  = Record
  88.                        ReqPos      : Integer;
  89.                        LeftOffset  : Short;
  90.                        TopOffset   : Short;
  91.                        Flags       : Integer;
  92.  
  93.         { OBSOLETE IN V38! DON'T USE! } Hook: HookPtr;
  94.  
  95.                        Dir         : String;     { READ ONLY! Change with rtChangeReqAttrA()! }
  96.                        MatchPat    : String;     { READ ONLY! Change with rtChangeReqAttrA()! }
  97.                        DefaultFont : TextFontPtr;
  98.                        WaitPointer : Integer;
  99.                        { (V38) }
  100.                        LockWindow  : Integer;
  101.                        ShareIDCMP  : Integer;
  102.                        IntuiMsgFunc: HookPtr;
  103.                        reserved1   : Short;
  104.                        reserved2   : Short;
  105.                        reserved3   : Short;
  106.                        ReqHeight   : Short;     { READ ONLY! Use RTFI_Height tag! }
  107.                        { Private data follows! HANDS OFF }
  108.                        end;
  109.     rtFileRequesterPtr = ^rtFileRequester;
  110.  
  111. { returned by rtFileRequestA() if multiselect is enabled,
  112.   free list with rtFreeFileList() }
  113.  
  114.     rtFileList = Record
  115.         Next    : ^rtFileList;
  116.         StrLen  : Integer;        { -1 for directories }
  117.         Name    : String;
  118.         end;
  119.     rtFileListPtr = ^rtFileList;
  120.  
  121. {***********************
  122. *                      *
  123. *    Font requester    *
  124. *                      *
  125. ***********************}
  126.  
  127. { structure _MUST_ be allocated with rtAllocRequest() }
  128.  
  129.     rtFontRequester = Record
  130.                       ReqPos        : Integer;
  131.                       LeftOffset    : Short;
  132.                       TopOffset     : Short;
  133.                       Flags         : Integer;
  134.                       { OBSOLETE IN V38! DON'T USE! } Hook: HookPtr;
  135.                       Attr          : TextAttr; { READ ONLY! }
  136.                       DefaultFont   : TextFontPtr;
  137.                       WaitPointer   : Integer;
  138.                       { (V38) }
  139.                       LockWindow    : Integer;
  140.                       ShareIDCMP    : Integer;
  141.                       IntuiMsgFunc  : HookPtr;
  142.                       reserved1     : Short;
  143.                       reserved2     : Short;
  144.                       reserved3     : Short;
  145.                       ReqHeight     : Short; { READ ONLY!  Use RTFO_Height tag! }
  146.                       { Private data follows! HANDS OFF }
  147.                       end;
  148.     rtFontRequesterPtr = ^rtFontRequester;
  149.  
  150. {*************************
  151. *                        *
  152. *  ScreenMode requester  *
  153. *                        *
  154. *************************}
  155.  
  156. { structure _MUST_ be allocated with rtAllocRequest() }
  157.  
  158.     rtScreenModeRequester = Record
  159.                             ReqPos      : Integer;
  160.                             LeftOffset  : Short;
  161.                             TopOffset   : Short;
  162.                             Flags       : Integer;
  163.                             private1    : Integer;
  164.                             DisplayID   : Integer;  { READ ONLY! }
  165.                             DisplayWidth: Short;    { READ ONLY! }
  166.                             DisplayHeight: Short;   { READ ONLY! }
  167.                             DefaultFont : TextFontPtr;
  168.                             WaitPointer : Integer;
  169.                             LockWindow  : Integer;
  170.                             ShareIDCMP  : Integer;
  171.                             IntuiMsgFunc: HookPtr;
  172.                             reserved1   : Short;
  173.                             reserved2   : Short;
  174.                             reserved3   : Short;
  175.                             ReqHeight   : Short;    { READ ONLY!  Use RTSC_Height tag! }
  176.                             DisplayDepth: Short;    { READ ONLY! }
  177.                             OverscanType: Short;    { READ ONLY! }
  178.                             AutoScroll  : Integer;  { READ ONLY! }
  179.                             { Private data follows! HANDS OFF }
  180.                             end;
  181.     rtScreenModeRequesterPtr = ^rtScreenModeRequester;
  182.  
  183. {***********************
  184. *                      *
  185. *    Requester Info    *
  186. *                      *
  187. ***********************}
  188.  
  189. { for rtEZRequestA(), rtGetLongA(), rtGetStringA() and rtPaletteRequestA(),
  190.    _MUST_ be allocated with rtAllocRequest() }
  191.  
  192.     rtReqInfo = Record
  193.                 ReqPos      : Integer;
  194.                 LeftOffset  : Short;
  195.                 TopOffset   : Short;
  196.                 Width       : Integer;        { not for rtEZRequestA() }
  197.                 ReqTitle    : String;         { currently only for rtEZRequestA() }
  198.                 Flags       : Integer;        { currently only for rtEZRequestA() }
  199.                 DefaultFont : TextFontPtr;    { currently only for rtPaletteRequestA() }
  200.                 WaitPointer : Integer;
  201.                 { (V38) }
  202.                 LockWindow  : Integer;
  203.                 ShareIDCMP  : Integer;
  204.                 IntuiMsgFunc: HookPtr;
  205.                 { structure may be extended in future }
  206.                 end;
  207.     rtReqInfoPtr = ^rtReqInfo;
  208.  
  209. {***********************
  210. *                      *
  211. *     Handler Info     *
  212. *                      *
  213. ***********************}
  214.  
  215. { for rtReqHandlerA(), will be allocated for you when you use
  216.    the RT_ReqHandler tag, never try to allocate this yourself! }
  217.  
  218.     rtHandlerInfo = Record
  219.                     private1  : Integer;
  220.                     WaitMask  : Integer;
  221.                     DoNotWait : Integer;
  222.                    { Private data follows, HANDS OFF }
  223.                     end;
  224.     rtHandlerInfoPtr = ^rtHandlerInfo;
  225.  
  226. Const
  227.  
  228. { possible return codes from rtReqHandlerA() }
  229.  
  230.     CALL_HANDLER = $80000000;
  231.  
  232. {*************************************
  233. *                                    *
  234. *                TAGS                *
  235. *                                    *
  236. *************************************}
  237.  
  238.     RT_TagBase = TAG_USER;
  239.  
  240. { *** tags understood by most requester functions *** }
  241.  
  242. RT_Window       = $80000001; { Optional pointer to window }
  243. RT_IDCMPFlags   = $80000002; { idcmp flags requester should abort on (useful for IDCMP_DISKINSERTED) }
  244. RT_ReqPos       = $80000003; { position of requester window (see below) - default REQPOS_POINTER }
  245. RT_LeftOffset   = $80000004; { signal mask to wait for abort signal }
  246. RT_TopOffset    = $80000005; { topedge offset of requester relative to position specified by RT_ReqPos }
  247. RT_PubScrName   = $80000006; { name of public screen to put requester on (Kickstart 2.0 only!) }
  248. RT_Screen       = $80000007; { address of screen to put requester on }
  249. RT_ReqHandler   = $80000008; { tagdata must hold the address of (!) an APTR variable }
  250. RT_DefaultFont  = $80000009; { font to use when screen font is rejected, _MUST_ be fixed-width font! pTextFont , not pTextAttr ) - default GfxBase^.DefaultFont }
  251.  
  252. RT_WaitPointer  = $8000000A; { boolean to set the standard wait pointer in window - default FALSE }
  253. RT_Underscore   = $8000000B; { (V38) char preceding keyboard shortcut characters (will be underlined) }
  254. RT_ShareIDCMP   = $8000000C; { (V38) share IDCMP port with window - default FALSE }
  255. RT_LockWindow   = $8000000D; { (V38) lock window and set standard wait pointer - default FALSE }
  256. RT_ScreenToFront= $8000000E; { (V38) boolean to make requester's screen pop to front - default TRUE }
  257. RT_TextAttr     = $8000000F; { (V38) Requester should use this font - default: screen font }
  258. RT_IntuiMsgFunc = $80000010; { (V38) call this hook for every IDCMP message not for requester }
  259. RT_Locale       = $80000011; { (V38) Locale ReqTools should use for text }
  260.  
  261. { *** tags specific to rtEZRequestA *** }
  262. RTEZ_ReqTitle   = $80000014; { title of requester window - english default "Request" or "Information" }
  263.                              { ($80000015) reserved }
  264. RTEZ_Flags      = $80000016; { various flags (see below) }
  265. RTEZ_DefaultResponse
  266.                 = $80000017; { default response (activated by pressing RETURN) - default TRUE }
  267.  
  268.  
  269. { *** tags specific to rtGetLongA *** }
  270. RTGL_Min        = $8000001E; { minimum allowed value - default MININT }
  271. RTGL_Max        = $8000001F; { maximum allowed value - default MAXINT }
  272. RTGL_Width      = $80000020; { suggested width of requester window (in pixels) }
  273. RTGL_ShowDefault= $80000021; { boolean to show the default value - default TRUE }
  274. RTGL_GadFmt     = $80000022; { (V38) string with possible responses - english default " _Ok |_Cancel" }
  275. RTGL_GadFmtArgs = $80000023; { (V38) optional arguments for RTGL_GadFmt }
  276. RTGL_Invisible  = $80000024; { (V38) invisible typing - default FALSE }
  277. RTGL_Backfill   = $80000025; { (V38) window backfill - default TRUE }
  278. RTGL_TextFmt    = $80000026; { (V38) optional text above gadget }
  279. RTGL_TextFmtArgs= $80000027; { (V38) optional arguments for RTGS_TextFmt }
  280. RTGL_Flags = RTEZ_Flags;     { (V38) various flags (see below) }
  281.  
  282.  
  283. { *** tags specific to rtGetStringA *** }
  284. RTGS_Width      = RTGL_Width;       { suggested width of requester window (in pixels) }
  285. RTGS_AllowEmpty = $80000050;        { allow empty string to be accepted - default FALSE }
  286. RTGS_GadFmt     = RTGL_GadFmt;      { (V38) string with possible responses - english default " _Ok |_Cancel" }
  287. RTGS_GadFmtArgs = RTGL_GadFmtArgs;  { (V38) optional arguments for RTGS_GadFmt }
  288. RTGS_Invisible  = RTGL_Invisible;   { (V38) invisible typing - default FALSE }
  289. RTGS_Backfill   = RTGL_Backfill;    { (V38) window backfill - default TRUE }
  290. RTGS_TextFmt    = RTGL_TextFmt;     { (V38) optional text above gadget }
  291. RTGS_TextFmtArgs= RTGL_TextFmtArgs; { (V38) optional arguments for RTGS_TextFmt }
  292. RTGS_Flags      = RTEZ_Flags;       { (V38) various flags (see below) }
  293.  
  294.  
  295. { *** tags specific to rtFileRequestA *** }
  296. RTFI_Flags      = $80000028; { various flags (see below) }
  297. RTFI_Height     = $80000029; { suggested height of file requester }
  298. RTFI_OkText     = $8000002A; { replacement text for 'Ok' gadget (max 6 chars) }
  299. RTFI_VolumeRequest=$8000002B;{ (V38) bring up volume requester, tag data holds flags (see below) }
  300. RTFI_FilterFunc = $8000002C; { (V38) call this hook for every file in the directory }
  301. RTFI_AllowEmpty = $8000002D; { (V38) allow empty file to be accepted - default FALSE }
  302.  
  303.  
  304. { *** tags specific to rtFontRequestA *** }
  305. RTFO_Flags      = RTFI_Flags;  { various flags (see below) }
  306. RTFO_Height     = RTFI_Height; { suggested height of font requester }
  307. RTFO_OkText     = RTFI_OkText; { replacement text for 'Ok' gadget (max 6 chars) }
  308. RTFO_SampleHeight=$8000003C;   { suggested height of font sample display - default 24 }
  309. RTFO_MinHeight  = $8000003D;   { minimum height of font displayed }
  310. RTFO_MaxHeight  = $8000003E;   { maximum height of font displayed }
  311. { [($8000003F) to ($80000042) used below] }
  312. RTFO_FilterFunc = RTFI_FilterFunc;{ (V38) call this hook for every font }
  313.  
  314.  
  315. { *** (V38) tags for rtScreenModeRequestA *** }
  316. RTSC_Flags         = RTFI_Flags;{ various flags (see below) }
  317. RTSC_Height        = RTFI_Height;{ suggested height of screenmode requester }
  318. RTSC_OkText        = RTFI_OkText;{ replacement text for 'Ok' gadget (max 6 chars) }
  319. RTSC_PropertyFlags = $8000005A;{ property flags (see also RTSC_PropertyMask) }
  320. RTSC_PropertyMask  = $8000005B;{ property mask - default all bits in RTSC_PropertyFlags considered }
  321. RTSC_MinWidth      = $8000005C;{ minimum display width allowed }
  322. RTSC_MaxWidth      = $8000005D;{ maximum display width allowed }
  323. RTSC_MinHeight     = $8000005E;{ minimum display height allowed }
  324. RTSC_MaxHeight     = $8000005F;{ maximum display height allowed }
  325. RTSC_MinDepth      = $80000060;{ minimum display depth allowed }
  326. RTSC_MaxDepth      = $80000061;{ maximum display depth allowed }
  327. RTSC_FilterFunc    = RTFI_FilterFunc;{ call this hook for every display mode id }
  328.  
  329.  
  330. { *** tags for rtChangeReqAttrA *** }
  331. RTFI_Dir = $80000032;{ file requester - set directory }
  332. RTFI_MatchPat = $80000033;{ file requester - set wildcard pattern }
  333. RTFI_AddEntry = $80000034;{ file requester - add a file or directory to the buffer }
  334. RTFI_RemoveEntry = $80000035;{ file requester - remove a file or directory from the buffer }
  335. RTFO_FontName = $8000003F;{ font requester - set font name of selected font }
  336. RTFO_FontHeight = $80000040;{ font requester - set font size }
  337. RTFO_FontStyle = $80000041;{ font requester - set font style }
  338. RTFO_FontFlags = $80000042;{ font requester - set font flags }
  339. RTSC_ModeFromScreen = $80000050;{ (V38) screenmode requester - get display attributes from screen }
  340. RTSC_DisplayID = $80000051;{ (V38) screenmode requester - set display mode id (32-bit extended) }
  341. RTSC_DisplayWidth = $80000052;{ (V38) screenmode requester - set display width }
  342. RTSC_DisplayHeight = $80000053;{ (V38) screenmode requester - set display height }
  343. RTSC_DisplayDepth = $80000054;{ (V38) screenmode requester - set display depth }
  344. RTSC_OverscanType = $80000055;{ (V38) screenmode requester - set overscan type, 0 for regular size }
  345. RTSC_AutoScroll = $80000056;{ (V38) screenmode requester - set autoscroll }
  346.  
  347.  
  348. { *** tags for rtPaletteRequestA *** }
  349. { initially selected color - default 1 }
  350.     RTPA_Color = $80000046;
  351.  
  352. { *** tags for rtReqHandlerA *** }
  353. { end requester by software control, set tagdata to REQ_CANCEL, REQ_OK or
  354.   in case of rtEZRequest to the return value }
  355.     RTRH_EndRequest = $800003C;
  356.  
  357. { *** tags for rtAllocRequestA *** }
  358. { no tags defined yet }
  359.  
  360. {************
  361. * RT_ReqPos *
  362. ************}
  363.     REQPOS_POINTER = 0;
  364.     REQPOS_CENTERWIN = 1;
  365.     REQPOS_CENTERSCR = 2;
  366.     REQPOS_TOPLEFTWIN = 3;
  367.     REQPOS_TOPLEFTSCR = 4;
  368.     
  369. {******************
  370. * RTRH_EndRequest *
  371. ******************}
  372.     REQ_CANCEL = 0;
  373.     REQ_OK = 1;
  374.  
  375. {***************************************
  376. * flags for RTFI_Flags and RTFO_Flags  *
  377. * or filereq->Flags and fontreq->Flags *
  378. ***************************************}
  379.     FREQB_NOBUFFER = 2;
  380.     FREQF_NOBUFFER = 4;
  381.  
  382. {*****************************************
  383. * flags for RTFI_Flags or filereq->Flags *
  384. *****************************************}
  385.     FREQB_MULTISELECT = 0;
  386.     FREQF_MULTISELECT = 1;
  387.     FREQB_SAVE = 1;
  388.     FREQF_SAVE = 2;
  389.     FREQB_NOFILES = 3;
  390.     FREQF_NOFILES = 8;
  391.     FREQB_PATGAD = 4;
  392.     FREQF_PATGAD = 16;
  393.     FREQB_SELECTDIRS = 12;
  394.     FREQF_SELECTDIRS = 4096;
  395.  
  396. {*****************************************
  397. * flags for RTFO_Flags or fontreq->Flags *
  398. *****************************************}
  399.     FREQB_FIXEDWIDTH = 5;
  400.     FREQF_FIXEDWIDTH = 32;
  401.     FREQB_COLORFONTS = 6;
  402.     FREQF_COLORFONTS = 64;
  403.     FREQB_CHANGEPALETTE = 7;
  404.     FREQF_CHANGEPALETTE = 128;
  405.     FREQB_LEAVEPALETTE = 8;
  406.     FREQF_LEAVEPALETTE = 256;
  407.     FREQB_SCALE = 9;
  408.     FREQF_SCALE = 512;
  409.     FREQB_STYLE = 10;
  410.     FREQF_STYLE = 1024;
  411.  
  412. {*****************************************************
  413. * (V38) flags for RTSC_Flags or screenmodereq->Flags *
  414. *****************************************************}
  415.     SCREQB_SIZEGADS = 13;
  416.     SCREQF_SIZEGADS = 8192;
  417.     SCREQB_DEPTHGAD = 14;
  418.     SCREQF_DEPTHGAD = 16384;
  419.     SCREQB_NONSTDMODES = 15;
  420.     SCREQF_NONSTDMODES = 32768;
  421.     SCREQB_GUIMODES = 16;
  422.     SCREQF_GUIMODES = 65536;
  423.     SCREQB_AUTOSCROLLGAD = 18;
  424.     SCREQF_AUTOSCROLLGAD = 262144;
  425.     SCREQB_OVERSCANGAD = 19;
  426.     SCREQF_OVERSCANGAD = 524288;
  427.  
  428. {*****************************************
  429. * flags for RTEZ_Flags or reqinfo->Flags *
  430. *****************************************}
  431.     EZREQB_NORETURNKEY = 0;
  432.     EZREQF_NORETURNKEY = 1;
  433.     EZREQB_LAMIGAQUAL = 1;
  434.     EZREQF_LAMIGAQUAL = 2;
  435.     EZREQB_CENTERTEXT = 2;
  436.     EZREQF_CENTERTEXT = 4;
  437.  
  438. {***********************************************
  439. * (V38) flags for RTGL_Flags or reqinfo->Flags *
  440. ***********************************************}
  441.     GLREQB_CENTERTEXT = EZREQB_CENTERTEXT;
  442.     GLREQF_CENTERTEXT = EZREQF_CENTERTEXT;
  443.     GLREQB_HIGHLIGHTTEXT = 3;
  444.     GLREQF_HIGHLIGHTTEXT = 8;
  445.  
  446. {***********************************************
  447. * (V38) flags for RTGS_Flags or reqinfo->Flags *
  448. ***********************************************}
  449.     GSREQB_CENTERTEXT = EZREQB_CENTERTEXT;
  450.     GSREQF_CENTERTEXT = EZREQF_CENTERTEXT;
  451.     GSREQB_HIGHLIGHTTEXT = GLREQB_HIGHLIGHTTEXT;
  452.     GSREQF_HIGHLIGHTTEXT = GLREQF_HIGHLIGHTTEXT;
  453.  
  454. {*****************************************
  455. * (V38) flags for RTFI_VolumeRequest tag *
  456. *****************************************}
  457.     VREQB_NOASSIGNS=0;
  458.     VREQF_NOASSIGNS=1;
  459.     VREQB_NODISKS=1;
  460.     VREQF_NODISKS=2;
  461.     VREQB_ALLDISKS=2;
  462.     VREQF_ALLDISKS=4;
  463.  
  464. {*
  465.    Following things are obsolete in ReqTools V38.
  466.    DON'T USE THESE IN NEW CODE!
  467. *}
  468.     REQHOOK_WILDFILE=0;
  469.     REQHOOK_WILDFONT=1;
  470.     FREQB_DOWILDFUNC=11;
  471.     FREQF_DOWILDFUNC=2048;
  472.  
  473.  
  474. {************
  475. * Functions *
  476. ************}
  477.  
  478. Var
  479.   RTBase: ReqToolsBasePtr;
  480.  
  481. Function rtAllocRequestA
  482.          (type_: Integer;
  483.           taglist: ReqTagListPtr): Integer;
  484.     external;
  485.  
  486. Function rtFreeRequest (req: Address): Integer;
  487.     external;
  488.  
  489. Function rtFreeReqBuffer (req: Address): Integer;
  490.     external;
  491.  
  492. Function rtChangeReqAttrA
  493.          (req: Address;
  494.           taglist: ReqTagListPtr): Integer;
  495.     external;
  496.  
  497. Function rtFileRequestA
  498.          (filereq:rtFileRequesterPtr;
  499.           file_: String;
  500.           title: String;
  501.           taglist: ReqTagListPtr): Integer;
  502.     external;
  503.  
  504. Function rtFreeFileList (filelist: rtFileListPtr): Integer;
  505.     external;
  506.  
  507. Function rtEZRequestA
  508.          (bodyfmt:String;
  509.           gadfmt: String;
  510.           reqinfo: rtReqInfoPtr;
  511.           argarray: Address;
  512.           taglist: ReqTagListPtr): Integer;
  513.     external;
  514.  
  515. Function rtGetStringA
  516.          (buffer: String;
  517.           maxchars: Integer;
  518.           title: String;
  519.           reqinfo: rtReqInfoPtr;
  520.           taglist: ReqTagListPtr): Integer;
  521.     external;
  522.  
  523. Function rtGetLongA
  524.          (longptr:Address;
  525.           title:String;
  526.           reqinfo:rtReqInfoPtr;
  527.           taglist: ReqTagListPtr): Integer;
  528.     external;
  529.  
  530. Function rtFontRequestA
  531.          (fontreq:rtFontRequesterPtr;
  532.           title: String;
  533.           taglist: ReqTagListPtr): Integer;
  534.     external;
  535.  
  536. Function rtPaletteRequestA
  537.          (title:String;
  538.           reqinfo: rtReqInfoPtr;
  539.           taglist: ReqTagListPtr): Integer;
  540.     external;
  541.  
  542. Function rtReqHandlerA
  543.          (handlerinfo: rtHandlerInfoPtr;
  544.           sigs: Integer;
  545.           taglist: ReqTagListPtr): Integer;
  546.     external;
  547.  
  548. Function rtSetWaitPointer (window: WindowPtr): Integer;
  549.     external;
  550.  
  551. Function rtGetVScreenSize
  552.          (screen: ScreenPtr;
  553.           widthptr,
  554.           heightptr: Address): Integer;
  555.     external;
  556.  
  557. Function rtSetReqPosition
  558.          (reqpos: Integer;
  559.           newwindow: NewWindowPtr;
  560.           screen: ScreenPtr;
  561.           window: WindowPtr): Integer;
  562.     external;
  563.  
  564. Function rtSpread
  565.          (posarray,
  566.           sizearray: Address;
  567.           length,
  568.           min,
  569.           max,
  570.           num: Integer): Integer;
  571.     external;
  572.  
  573. Function rtScreenToFrontSafely (screen: ScreenPtr): Integer;
  574.     external;
  575.  
  576. Function rtScreenModeRequestA
  577.          (screenmodereq: rtScreenModeRequesterPtr;
  578.           title: String;
  579.           taglist: ReqTagListPtr): Integer;
  580.     external;
  581.  
  582. Function rtCloseWindowSafely (win: WindowPtr): Integer;
  583.     external;
  584.  
  585. Function rtLockWindow (win: WindowPtr): Integer;
  586.     external;
  587.  
  588. Function rtUnlockWindow
  589.          (win: WindowPtr;
  590.           winlock: Address): Integer;
  591.     external;
  592.